package org.dromara.student.domain.bo;

import org.dromara.student.domain.XjStudentTask;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 学生作业业务对象 xj_student_task
 *
 * @author Lion Li
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XjStudentTask.class, reverseConvertGenerate = false)
public class XjStudentTaskBo extends BaseEntity {

    /**
     * 作业id
     */
    @NotBlank(message = "作业id不能为空", groups = { EditGroup.class })
    private String taskId;

    /**
     * 作业名称
     */
    @NotBlank(message = "作业名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 关联教师作业id
     */
    @NotNull(message = "关联教师作业id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * AI评分
     */
    @NotNull(message = "AI评分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long aiScore;

    /**
     * 教师评分
     */
    @NotNull(message = "教师评分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long teacherScore;

    /**
     * 总分
     */
    @NotNull(message = "总分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalScore;

    /**
     * AI得分建议
     */
    @NotBlank(message = "AI得分建议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String aiSuggestion;

    /**
     * 教师建议
     */
    @NotBlank(message = "教师建议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherSuggestion;

    /**
     * 大模型返回结果
     */
    @NotBlank(message = "大模型返回结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String glipJson;


}
